<template>
	<view>
		<view class="box1" :isFull="true" title="反馈意见" :thumbnail="contentIcon">
			<textarea v-model="data.content" placeholder="您的反馈对我们非常重要,请在此输入."></textarea>
		</view>
		<view class="box2" :isFull="true" title="联系方式" :thumbnail="contactIcon">
			<input v-model="data.contact" placeholder="手机 QQ或e-mail,方便我们联系您" />
		</view>
		<button class="submit-btn" @click="submit">提交</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {
					imgList: [],
					content: "",
					contact: ""
				},
			}
		},
		methods: {
			submit() {
				this.$emit("submit", this.data)
			}
		}
	}
</script>

<style lang="scss">
	page {
		background:#F0F0F0;
	}
	.box1 {
		margin-top: 20rpx;
		margin-bottom: 20rpx;
		background-color: #FFFFFF;
		// border-style: solid;
		// border-width: 1px;
	}
	.box2 {
		margin-bottom: 20rpx;
		background-color: #FFFFFF;
		// border-style: solid;
		// border-width: 1px;
	}
	.submit-btn {
		background-color: #49abe8;
		margin: 20rpx 0;
	}
</style>
